<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="description" content="">
  <meta name="author" content="">
  <link rel="shortcut icon" href="<?php echo base_url('source/img/favicon.ico');?>" /> 

  <title>PGI Admin</title>

  <link href="<?php echo base_url('source/lib/admin/css/style.default.css');?>" rel="stylesheet">
  <link href="<?php echo base_url('source/lib/admin/css/jquery.datatables.css');?>" rel="stylesheet">
  <link rel="stylesheet" href="<?php echo base_url('source/lib/admin/css/bootstrap-fileupload.min.css');?>" />
  <link rel="stylesheet" href="<?php echo base_url('source/lib/admin/css/bootstrap-timepicker.min.css');?>" />
  <link rel="stylesheet" href="<?php echo base_url('source/lib/admin/css/jquery.tagsinput.css');?>" />
  <link rel="stylesheet" href="<?php echo base_url('source/lib/admin/css/colorpicker.css');?>" />
  <link rel="stylesheet" href="<?php echo base_url('source/lib/admin/css/dropzone.css');?>" />
  <link rel="stylesheet" href="<?php echo base_url('source/lib/admin/css/bootstrap-wysihtml5.css');?>" />
  <script src="<?php echo base_url('source/lib/admin/js/jquery-1.11.0.min.js');?>"></script>
  <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!--[if lt IE 9]>
  <script src="js/html5shiv.js"></script>
  <script src="js/respond.min.js"></script>
  <![endif]-->
</head>

<body>

<!-- Preloader -->
<div id="preloader">
    <div id="status"><i class="fa fa-spinner fa-spin"></i></div>
</div>

<section>
  
<?php echo $this->load->view('shared/left_panel');?>
  <!-- left panel -->
  <div class="mainpanel">
    <?php echo $this->load->view('shared/header');?>
    <!-- headerbar -->
        
    <div class="pageheader">
      <h2><i class="fa fa-home"></i>  <?php echo @$breadcrumb;?></h2>
    </div>
    
    <div class="contentpanel">
      <!-- content goes here... -->
      <?php echo @$body;?>
    </div>
    
  </div><!-- mainpanel -->
  
  <!-- rightpanel -->
  
</section>


<script src="<?php echo base_url('source/lib/admin/js/jquery-migrate-1.2.1.min.js');?>"></script>
<script src="<?php echo base_url('source/lib/admin/js/jquery-ui-1.10.3.min.js');?>"></script>
<script src="<?php echo base_url('source/lib/admin/js/bootstrap.min.js');?>"></script>
<script src="<?php echo base_url('source/lib/admin/js/modernizr.min.js');?>"></script>
<script src="<?php echo base_url('source/lib/admin/js/jquery.sparkline.min.js');?>"></script>
<script src="<?php echo base_url('source/lib/admin/js/toggles.min.js');?>"></script>
<script src="<?php echo base_url('source/lib/admin/js/retina.min.js');?>"></script>
<script src="<?php echo base_url('source/lib/admin/js/jquery.cookies.js');?>"></script>
<script src="<?php echo base_url('source/lib/admin/js/jquery.datatables.min.js');?>"></script>
<script src="<?php echo base_url('source/lib/admin/js/jquery.autogrow-textarea.js');?>"></script>
<script src="<?php echo base_url('source/lib/admin/js/bootstrap-fileupload.min.js');?>"></script>
<script src="<?php echo base_url('source/lib/admin/js/bootstrap-timepicker.min.js');?>"></script>
<script src="<?php echo base_url('source/lib/admin/js/jquery.maskedinput.min.js');?>"></script>
<script src="<?php echo base_url('source/lib/admin/js/jquery.tagsinput.min.js');?>"></script>
<script src="<?php echo base_url('source/lib/admin/js/jquery.mousewheel.js');?>"></script>
<script src="<?php echo base_url('source/lib/admin/js/chosen.jquery.min.js');?>"></script>
<script src="<?php echo base_url('source/lib/admin/js/dropzone.min.js');?>"></script>
<script src="<?php echo base_url('source/lib/admin/js/colorpicker.js');?>"></script>
<script src="<?php echo base_url('source/lib/admin/js/custom.js');?>"></script>
<script src="<?php echo base_url('source/lib/admin/js/jquery.validate.min.js');?>"></script>
<script src="<?php echo base_url('source/lib/admin/js/wysihtml5-0.3.0.min.js');?>"></script>
<script src="<?php echo base_url('source/lib/admin/js/bootstrap-wysihtml5.js');?>"></script>
<script>
jQuery(document).ready(function(){
    
  // HTML5 WYSIWYG Editor
  jQuery('#wysiwyg').wysihtml5({color: true,html:true});
  
  // CKEditor
  jQuery('#ckeditor').ckeditor();

});
</script>
<script type="text/javascript">
  var edit = 0<?php echo @$edit;?>;
  if(edit == 01){
    jQuery(".file").hide();
  }else{
    jQuery(".file").show();
  }
</script>

<script type="text/javascript">
     jQuery('#table2').dataTable({
      "sPaginationType": "full_numbers"
    });
</script>
<script>
jQuery(document).ready(function(){
  
  // Basic Form
  jQuery("#basicForm").validate({
    highlight: function(element) {
      jQuery(element).closest('.form-group').removeClass('has-success').addClass('has-error');
    },
    success: function(element) {
      jQuery(element).closest('.form-group').removeClass('has-error');
    }
  });
  
  // Error Message In One Container
  jQuery("#basicForm2").validate({
   errorLabelContainer: jQuery("#basicForm2 div.error")
  });
  
  // With Checkboxes and Radio Buttons
  jQuery("#basicForm3").validate({
    highlight: function(element) {
      jQuery(element).closest('.form-group').removeClass('has-success').addClass('has-error');
    },
    success: function(element) {
      jQuery(element).closest('.form-group').removeClass('has-error');
    }
  });
  
  // Validation with select boxes
  jQuery("#basicForm4").validate({
    highlight: function(element) {
      jQuery(element).closest('.form-group').removeClass('has-success').addClass('has-error');
    },
    success: function(element) {
      jQuery(element).closest('.form-group').removeClass('has-error');
    }
  });
  
  
});
</script>
<script>
jQuery(document).ready(function(){
    
  // Chosen Select
  jQuery(".chosen-select").chosen({'width':'100%','white-space':'nowrap'});
  
  // Tags Input
  jQuery('#tags').tagsInput({width:'auto'});
   
  // Textarea Autogrow
  jQuery('#autoResizeTA').autogrow();
  
  // Color Picker
  if(jQuery('#colorpicker').length > 0) {
   jQuery('#colorSelector').ColorPicker({
      onShow: function (colpkr) {
        jQuery(colpkr).fadeIn(500);
        return false;
      },
      onHide: function (colpkr) {
        jQuery(colpkr).fadeOut(500);
        return false;
      },
      onChange: function (hsb, hex, rgb) {
        jQuery('#colorSelector span').css('backgroundColor', '#' + hex);
        jQuery('#colorpicker').val('#'+hex);
      }
   });
  }
  
  // Color Picker Flat Mode
  jQuery('#colorpickerholder').ColorPicker({
    flat: true,
    onChange: function (hsb, hex, rgb) {
      jQuery('#colorpicker3').val('#'+hex);
    }
  });
   
  // Date Picker
  jQuery('#datepicker').datepicker();
  
  jQuery('#datepicker-inline').datepicker();
  
  jQuery('#datepicker-multiple').datepicker({
    numberOfMonths: 3,
    showButtonPanel: true
  });
  
  // Spinner
  var spinner = jQuery('#spinner').spinner();
  spinner.spinner('value', 0);
  
  // Input Masks
  jQuery("#date").mask("99/99/9999");
  jQuery("#phone").mask("(999) 999-9999");
  jQuery("#ssn").mask("999-99-9999");
  
  // Time Picker
  jQuery('#timepicker').timepicker({defaultTIme: false});
  jQuery('#timepicker2').timepicker({showMeridian: false});
  jQuery('#timepicker3').timepicker({minuteStep: 15});
});
</script>

</body>
</html>
